﻿using UnityEditor;
using UnityEngine;
using System.Collections;

[CustomEditor(typeof(TileMap))]
public class TileMapButton : Editor {

	public override void OnInspectorGUI() {
		DrawDefaultInspector();

		if(GUILayout.Button("Regenerate")) {
			TileMap tileMap = (TileMap)target;
			tileMap.BuildMesh();
		}
	}
}
